/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package session04;

import java.util.Stack;

/**
 *
 * @author macbookpro
 */
public class StackTest {

    public static void main(String[] args) {
        Stack s = new Stack();
        s.push(new Student("R0001", "abc"));
        s.push(new Student("R0002", "xyz"));
        s.push(new Student("R0003", "123"));
        
        while(!s.isEmpty()){
            System.out.println(s.pop());
        }
    }
}
